Use GtkCssValue in symbolic color resolving
authorAlexander Larsson <alexl@redhat.com>
Thu, 8 Mar 2012 13:52:10 +0000 (14:52 +0100)
committerAlexander Larsson <alexl@redhat.com>
Thu, 8 Mar 2012 13:52:10 +0000 (14:52 +0100)
commit616cc5b96dc6d04ec0dcb43fe1024dc5473bfc9b
treea9a2b4704f9ece7d5350362898d024f6ec945b32
parent3cfd1d93dc303f21ef7593848ec63165eb1f5dad
Use GtkCssValue in symbolic color resolving

We now store the symbolic colors as a GtkCssValue which means that
we can reuse the color when resolving and storing the color in
the computed values in the style context.

Additionally we keep a last_resolved GtkCssValue cache in the
GtkSymbolicColor, and if resolving the color returns the same as
last time we reuse the old value. This further increases sharing
of Css Values.
gtk/gtkcssstylefuncs.c
gtk/gtkcssstylepropertyimpl.c
gtk/gtkstylecontext.c
gtk/gtkstylecontextprivate.h
gtk/gtksymboliccolor.c
gtk/gtksymboliccolorprivate.h